package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

// 分类模块
public interface CategoryMapper extends BaseMapper<Category> {
    // 调用mapper查询所有
    List<Category> findAll();
    //新增
    void save(Category category);
// 修改
   // int updateById(Category category);
// 删除三部曲
    Long deleteBydish(Long id);

    Long deleteBySetmeal(Long id);

    void delete(Long id);
}
